Test admin function.