Fixed event_based/core_test.py