Combed up Result a bit, added basic tests.