Test for ShellMenu. Replicates #749.