Added test class. Interpret api response as either array of strings or as hash and check expectations accordingly.