add test for jira-config-helper command and some refactoring to ease testing