Unit tests for HQL conversion