Added unit test for allowDeselect option.