DistributedStateManager fixes and added unit test.
Merge pull request #82 from pferraro/3.0

DistributedStateManager fixes and added unit test.