Add tests for rebinding event.