Switch dependency injection to use proxyquire

By recommendation from @adamwitko. What do you think?