Added WriteOrder UnitTest