Graph testing