Test for java8 issue #14