test: Use test_get_context() in log.c