Adding mock_log for unit tests