foreign content test parser fixes