Test for java8 issue #12