admin test refactoing red