test the decoratedFn was called