added test for n'th degree dependency