Fix unicode in emptytree and add tester