Helpers for testing asynchronous behavior with GCD queues