last uncatched error will be printed after execution
updated error-handling unit-test