Add test case for RunCommandHistoryTest