fixed mock command line class bug and removed local variables in menu class