Fixing 'hostname' in joyent sync plus adding some sanity check tests