Unit test admin authorization