test NSDictionary and NSAttributeString