Add some test case for tricky queries.