Add filter_test and move query parser in its own file.