fix(directive test): Fix an analyzer warning