fix(tests): restrict result extraction to rank zero (#6620)