testing select and poll