test admin function
state machine