copied modelSwitch case 2 (RastriginModel) to a unit test file that touches a lot of code but does not test much yet