Adding preference test with HQL example