NOTASK test(pushHandler) added tests

- tweak the implementation for `pushHandler`
- add tests for `pushHandler`