Fixed tests for Solaris with jdk 1.8