Added test for preg_replace deprecation error