Adding unit test for select.