fix ec2 tests