Add tests for makeSelected and dumpSelection