add test for validity of events