Fixed tests and incorrect isAdmin call