Allow mocking of S3 functions