global test refactor