Fixed some brain-dead errors
Added query_test.clj