add integration tests for the recursive case.