Added mock test on cmd context creator