Lawmakers move to legalize fentanyl tests