New ssh commands module and commands mock function

return value here or in the if/else above?