added unit tests for log widget