add tests for resizeBounds