Added msg and action events + tests.