Test for exception codes too for PHP-658