added saving menu and tests