Adding specs for _getDependencyValue and a small bug fix.