Added a unit test to verify that selected cells are stored in a unique set