NOTASK test(pushHandler) added tests

- tweak the implementation for `pushHandler`
- add tests for `pushHandler`
change all `res` occurrences to `r`