Testing Scala with a hangman