fix tests when run inside EC2