Remove const in Result class.

The const requirement was preventing non-const methods from being
callable on the value.
Add ResultTest.