Added first test of the saving function