Add test cases for timer

To be on the safe side, I would also add `self.assertFalse(mock_dispatcher.assert_payload())` here.