test reading the bytes