Adding error handling integration tests for component metadata rules

+review REVIEW-5218