testing writing to file for gem the s3 way