check context for nullability
BackgroundTaskQueue.waitForTasksToFinish API
BackgroundTaskQueue doesn't postpone onSuccess/onCancel until next awt-event in test mode