tests select implementation