Change out the aws api for mocks in the tests