Work in progress for #383. Added tests for session flush, retrieve and
destroy.
Finished nearly all tests for #383 however session retrieval is acting
weird