event_based/core_test.py does not depend on random numbers any more