add tests for AMD-style chains of dependencies