refined IO tests