Move event tests to om.c