Fix Scala tests on Travis

Sorry for the delay on looking into this.