Added test cases for .save vs  .save! bug

Test cases for issue #4566