Add having clause test
Implement having clause