Added checks for values and spec tests

MaxSessions and MaxStartups are check for sanity and tested in the spec tests.