fix admin.py and test