fixed SaveAs bug. It was being caused by i_dotests of all things. Standarized all things that required testing to have exactly 4 tests, so a for loop can be used instead of a while loop.