Replaced all references to setLimit with setSize in the test cases