Test fetch api v2

Some tests for the FetchAPI class. The patch_egg functionality is not tested because I don't think we use it anywhere.