block reader/writer unit test