Replace deprecated functions and add test for SurefireUtils class