added test coverage around selection box resizing