Added binary read/write unit test