Adds function to duck-type response dict && refactors test code