Add search permissions tests affinitic refs #5910