Try / catch used in tests.php

This plays nicer with install.php, and is a little more informative.