functional test for nested sd-repeat