TST: fix broken test

When ex = JoblibException, isinstance(ex, JoblibException) is always
false, so this test wasn't doing anything.

Also changed a return to a SkipTest.
ENH check for Sized instead of list for pre_dispatch

Handles tuples, sets and Python 3's dict_keys type the same as lists.