Improved managed event unit tests