unittests for parseEscape