change the way we check if the file was created in the example