Fix versioning unit tests

Add new table name to store stub in order to fix unit tests that would fail because of missing table.
Fix deletion of metadata

When history is deleted for a graph, also the metadata needs to be deleted, which is done now.