Improved test. Added persistence in memory database.

Modified process at runtime.