fix some bugs in the test_saving.py scripts

Status Job ID Name Coverage
  Build
passed #159919
linux
build-linux

00:52:22

passed #159920
win
build-win

00:37:12

 
  Deploy
manual #159921
linux conda allowed to fail manual
deploy-devel