'Build logic selects the module that matches an external dependency' story

- Adding integration tests for select/reject cases

+review REVIEW-5126
'Build logic selects the module that matches an external dependency' story

- Adding sample

+review REVIEW-5126