add buffer and fd tests