Improve topic merge unit test with non-ASCII characters in IDs #1491