extend principal sql tests
refactor, setters for config values
fix error in setter, add tests
add cookie auth test
Merge pull request #66 from wongak/testing

Add a few tests