Add tests for utils._prepare_for_instance_ssh

These tests were not added when the function was orignally comitted.

Change-Id: I6468a184aec1cfa7c2a7d65957acfd0d00d4ec6f
Closes-bug: #1285037
Merge "Add tests for utils._prepare_for_instance_ssh"