split url and type in seperate method
Wrong key in tests
test for gradient
validurl and isnew tests