Close connection in test cases to avoid running out of connections
Test coverage for GROUP BY and ORDER BY