Fixed some issues with logging if test validation fails