Legal regulation of rights test in