add tests for selecting and expanding