Fix broken tests

Non-optional constructor arguments don't necessarily throw an Exception you can catch in a test, depending on the PHP/HHVM version/configuration they may cause a runtime error instead.