Added NodeMock.returnsF so that functions that provide dynamic results can be used