add test case for select()