test menu function