Fix aws credentials test