Fix for repr and add unit test for event

Face of cube is always an integer and entityId should always be discrete integer
So use :d instead of :2f

Add unit test of event.py