test case for select
 more bug fix