fixing the graphics library demo rectTest bug