Unittest house keeping

Fixed test.conf to avoid exceptions being thrown when parsing config.
Added a test to make sure sessionMode is being read in correctly.