Unit tests for fitToBoundingBox()