Add special tests, fix inmemory