fix scala 2.10 compilation in tests