Implemented PersistenceManager which periodically stores the graph + tests for it