added test to make sure a registration belongs to a event and its attributes are valid