Changed test spec to allow for a mock object instead of a real WordTuples object.