Added some tests for distributor.py.