Add tests in update.py