add logging to show errors in nfailing unit test