add log_level options to ssh and fix tests