moved out 2 functions to try to reuse them with macros
fixed the missing attribute on junit xml which triggers a Bamboo failure
migrated the junit xml spec to the interpolated spec