function and wrapped function tests