Fix typo in Scala unit test