Set Database for testing to Sqlite memory. And some change in unit test.