adding a unit test for selector