The extra ```write``` is probably causing the test failures.