Corrected failing tests
Open buffer in readonly mode iso readwrite mode