Test fetch api

This PR adds tests for the FetchAPI class, except for the patch_egg method (which is not used anywhere AFAIK)