changed tests to use in-memory database