Expanded test case for testing escaping and fixed faulty escaping implementation.