Added new test case for `CGRectOffsetRectToFitInRect`.
Fixed an issue where dx was left uninitialized in `CGRectOffsetRectToFitInRect`. Simplifying check if possible.