Testing that the sitemap is valid (which we test in the following test) also checks that the sitemap has been generated. The test will also fail with different errors depending on whether no file was generated or the generated file is invalid.