Refactor eunit tests for verifying s3 url config is respected