Event unit tests and null checks

Plus, null checks for classes that Event uses!