fix(test): fix infinite loop test
feat(Editor): put a limit on to how may items you can have in the history