test infer-tag