refactor(test): included all run command flag test

* Added all run command flag test in run_test.go
* Refactored root_test.go to use new methods in run_test.go
2 files changed