Enhance readCommands test

* read expected result from a file