tests for select method