changing result v expected test to be slightly more flexible