testing CRUDEntity::validate