changed java version to match EC2, fixed unit test