Tests for OperationResult and fixes where tests failed. Updated documentation.