Add test coverage for string output