Partially fixes issue #26

Use the helper function to check if the ssh info are correct before
executing the test, the SSH tests will be skipped if it couldn't
connect to the remote server.