Added Unit tests for Dao with HQL.