8173056: Add test that captures current behavior of annotations with invalid annotation typesReviewed-by: redestad