repeat action test refactor