Fix tests, add extra tests for ssh-device, fix command execution