add tests for to_unicode