Shutdown of thread pool inside Dispatcher only if it is a PicassoExecutorService.
Fixed test to take in consideration if the thread pool is external or not.