Refactor tests for BrowseOverflowController