Ensure app.locals path test uses correct API.