Fix a bug in the test for italic font style property.