fix in-memory tests