Add spec for dependency using script injection