added test cases, small changes in S3UploadMojo class