test: split basis.template suite in modules
basis.template.tokenize: fix text token join in post processing
basis.template.tokenize: small post-process refactoring