Using GCD for creating shared dispatcher.
Fixed crashing tests.