Fix prettifyMethodName test assertions per review feedback