Added parts to construct the git message and some tests