Fixed fatal.
Added more logging tests.