Add tests to bindEntityEvents and unbindEntityEvents