+test for resultOf