Fix tests.
Update exception in log classes.