s3: put_object test and dialyzer fixes