Fix tests for Scala 2.9.