added processing all active commands to the persister, and tests to accompany it