Merge pull request #6 from McPringle/master

Fixed unstable test (issue with different behaviour depending on JDK)