role selection and some tests