refactored NewAppCommandRunner in a way which is more testable
Provided integration test for NewApp command