Test recursive works correctly