Fixed missing admin set in loginAsAdmin()