Fix unresolved with_empty_func in tests