register/unregister listeners  test & fix