Added logging test.

- Related to #4 and #12.