Tests fixes for is_local