Add fixture for sessions to allow tests to be run when using database sessions
Merge branch 'hotfix/database-session-tests'