Drug testing and formulation