attempting to add tests for returning api data