Fixed bugs in test classes since we added extra parameters to saveLocal