Add semicolons to queries and assert query in select test.