Test, Recht