Writing tests for add method visitor and persisted project