completed recursion tests