added tests for Result