function tests complete