Fix tests to count pixels, not rows