extract test for cell pixels
rejig tests for the rectangle
refactored tests