Add test for HAVING without GROUP BY
scalastyle fixes