update api test base.py