[unit-test-updates] transformed unitTests, saveTests from a script to a function with te abitlity to set input settings and options and fixed TestSimulator