adds unit test that would have caught the missing checkDependency