test gradient binary pattern, still dosn't work