test_log.py: Fixed test cases