Add tests for ShapeEventEmitter