selection_test : refactor shared logic to utility function `testSelectMethod`