Fix hostname issue on tests