Scientists report the development of much needed new tests to help cope with a wave of deaths, emergency room visits and other problems from a new genre of dangerous designer drugs sold legally in stores and online that mimic the effects of cocaine, ecstasy and marijuana.