Updated test to check for correct escape characters in returned string