Bug fix in smart_dispatch.py tests