Unit tests for token replacer.