Created error handling for create_mapping_text()

-Created error handling according to git-check-ref-formats man page
disallowed git branch name information.

https://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html

-Created unit tests to check all the functions of create_mapping_text()
and
errors it should raise if the branch name isn't well formed