This is because the ResultSet is designed to give you each item "On Demand" rather than loading them all at once, which can cause you to use huge amounts of memory if the resultset is large.
You can get the full resultset as an array of items if you need:
var_dump($test->toArray()):