Add basic unit test for the disk writer code.