[test] changed the testing condition in order to check if the reset of event works
[feat] added resetting timer after each publish
[fix] fixed the bug offset hasn't been taken into account