added tests for isAdmin