Changed settings saving format
Added extra tests to MainTesting