added test-prescriptions code