Added unit tests for log_remove_old. TRQ-1305