Added tests for SaveAs(string) function