Modernised test so that exceptions are not hidden from output