Wikimedia unit test changes

Two changes that allow better unit testing of the wikimedia harvester