Tests only run with java 8