Cleaned up document, serializer, and workspace tests.

Improved usage of Mocks.