added read test to investigate a strange bug occouring only under windows