test: Function.tokenize unit test