Added .limit() to query functions. Fixed typo in test.