fixed broken tests from new autodiff nesting and moving dependencies