Move response parsing to it's own method and added some tests for the utilities module