added test, with random crashes on G1GC/Java7/Java8