Fix path for mock patching in tests