Testing the save function