test event creation utilities

i copied the code from the mdm as a practice for the real code. this is
definitly a test run