Make selection example as a unit test