Fix retrieving test dependencies