factor out some common test logic for annotation rule definition handler

- cleanup / remove unused test classes in ComponentBinariesRuleDefinitionHandlerTest

+review REVIEW-5192