Added beginnings of tests

Also modified session module to be able to use the
Flask test client instead of requests