added a workspace restore test
making sync optional
ensure workspace resources are hashable
Merge pull request #478 from dart-lang/workspace_test

Workspace test