Use apply_async into tests instead of delay