hasGradient and stripUrl tests
stricter gradient check