Add tests for setting src to a cached resource when there are ongoing fetches