updated tests to use in memory db