work around apparent silly bug in ScalaTest

fixes NetLogo/NetLogo #668 (but here in the NetLogoHeadless repo;
not sure if the problem has been observed in the other repo)