Move using to unit test namespace
Refactor query_tests.cpp
Use unique_ptr from the beginning for safety
Revive Query base class, rename it to Query::Any
Change Haskell style comma to C++ style