Initial checkin. Reading/writing blocks in tests