adding basic unit tests for update.py