Fix order of exceptions.
Make test.php more user friendly.