test_query: fix test_main and mark so nosetests will ignore it