unittests for Event