Add optional callback to `pollRate`
Add a unit test for ticker