Implementation of menu_alter to fix the test