fix phpunit test for escape function