fixed unit test caused to fail on Open JDK 7 in Linux