Settings tests improvements.
Implemented few basic tests.
Fix formating (tabs -> spaces)