Remove redundant code from query
Clarify variable names in query tests
Set MockQuery methods on the prototype instead of replacing the prototype
Move Slice out to separate file
Move queue out to separate module
Rename queue#add as queue#push
Add test coverage against FlushQueue