fix tests on JVM

Fix test failure. 

Perhaps a more definitive set of build instructions would stop this happening in future?