Yes, a test purchase is a legitimate way to objectively assess policy and behaviour, provided it's carried out proportionately and isn't aimed at inciting rule-breaking behaviour.