added gradTestCheck