Add assert_log method to TestLogger to harden test