assure commits can be amended

This commit puts in tests to assures that commits can be amended
and that the jira number is inserted in the amended commit.