[ 5 ] Fixed in-memory database and tests