Add tests

-BaseQuery accepts mode
-Subclasses accept mode on behalf of BaseQuery