Add test for recursive models