Add testability hook to downgraded component so that protractor can wait for asynchronous call to complete. Add unregisterApplication() and unregisterAllApplications() to testability registry for cleaning up testability and unit test.