moved repeated expect_admin statements into before statement