Fixing undefined variable error in Save.php, add basic unit test for Save.