Add resolveLabeledBy test for explicit labeledBy