improve error log
improve exception test output