Improving HwEntityDaoTest and adding equals/hashcode for HW entities.