made unit test for Selector; tested text and textarea case.