Fix history was not updated correctly on new action
Add tests
Merge pull request #15 from dhenneke/master

Fix history was not updated correctly on new action