improved select tests