added gradient position test