added HAVING tests for Select