Fix function composition in permission nav test