Correct unicode handling in tests