Added in memory database as default for test mode
(cherry picked from commit b9a4188)