SONAR-3755 Add unit test to check that ruleKey, repoKey and componentKey are set when selecting issues from db