Add tests for PHP-447