completed high order functions tests