Add tests for fetch.