add common test for recursive