Restored CommandWriterTests. 28 failed tests.