modify java8 preview test