fix scalatest oom error