Write test for saving an image with url and name provided