Add unit tests for Log and LogStream