Fix Scala tests on Travis