Bug 1081065 - Fix broken test coverage

Blanket deems this part of code to be an adapter. So I got rid of it and load from data-cover-adapter in agent_proxy.js. It's an official way to extend our own function.