more select() tests, fixes