better testing for @share element in header