Do it just like you did with dragMovesHandled; initialize releasesHandled to 0 at the top of the test, increment it here, and test its value in the canvasClickHandler.