Test and tag procedure