fixed tests and added proxyquire