Added history-undo json API test.