More detailed error logging on tests