add stroke count check to tests