Fix the break in add-machine with ssh placement

Added a few tests too.