Add read/write descriptor tests.