refactoring of AdminActionTest