LPS-50762 use JUnit rules instead of listeners

From @adolfopa 

Hi Brian,

I've updated the tests to use the new rules created by Shuyang. About the duplicated OSX_Test.docx files, I'll send the changes in a different PR to avoid any possible conflict with this one.

Thanks