FluentFunction implementation and tests