refactor tests to conform to Pester v2 assertions