Fixed anon having admin priviledges, and added tests.