Adding error handling tests for component metadata rules

+review REVIEW-5218