add tests for text renderer