Added exception print to unittest