Close session in after_request
Added test settings file
Added tests