Fixed writeCommands order
Previously command order was not maintained which would cause issues when commands were order dependant! This was also causing tests to occasionally fail ;)
Previously command order was not maintained which would cause issues when commands were order dependant! This was also causing tests to occasionally fail ;)