Add specs for quantile and gradient