test link criteria query