enhanced tests for get_db_session()
enhanced tests for get_db_session()


Former-commit-id: 24520103bdf1c3db065ee7d687f79951008916fe [formerly 24520103bdf1c3db065ee7d687f79951008916fe [formerly 0928a8b06148171bbfd635a81f318c3328805ac1]]
Former-commit-id: d5a514c27d1316730db2faec67f09009387194c8
Former-commit-id: cd5654103d635951fd85c77a3ada20df469a26dd
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine