Code

frontend/query_test: Add tests for the lower level functions.