ObjectWriter/Reader: tests updated for the new API.