[tests] fix testWriteBerpToFD test
[tests] fix testReadBerpFromFD test