Fixed failing admin tests
Merge pull request #315 from Bladrak/adminTestFix

Fixed failing admin tests