The tests aren't looking at what was printed (ie, to the console) but instead are looking at the string that is returned when the method is called.
Loading collection data...
The tests aren't looking at what was printed (ie, to the console) but instead are looking at the string that is returned when the method is called.