NX-526: using in-memory DB for UT

Needed a bit more than initially expected to make it work