fix to ec2 test