Modify Mockbase to properly scan using a cursor instead of returning all of the
rows in one call. Also add a setter to let the unit test set how many rows
are returned in each call. This can be overridden by the class under test.