wrote tests for medicament