Added PHPUnit to require dev
This is no longer required to be run in an separate process and slows down tests
Fix status code on exceptions.