Make test work in local mode.