Refactor listen installed package changes.
Refactor get instance of OpenPushHelper in test.