update module to work with new api. update tests to reflect new response data.