add code coverage and refactor jiraeventconnector