Add test for nested