add test that should reliably break in java8 and java7