Fixed Bug in Tests: Replaced .toSet by distinct for correct order of the tokens