Making test dependencies optional