Fix tests to accommodate recent bugfix.
Fix formatting error in exception logging