Added HQL test