Argha : fixing in memory db issue for tests