Add test for PHP-797