added fix for simplecov as well as adding mocking for integration tests