Fix up kv engine heap test, do not crash when creating a capped
collection