[update] before/after block called in test context.