adding unit test for select