provision/docker: more tests to the sshToContainerCmd

Closes #853.