Fix compilation and tests

Hi Johan - this commit fixes the build and tests for the Scala bot.