Added unitTests.py, changed order of arguments in Optimization.py