Make test_origin_metadata.py more robust
ensure the results of the test do not depend on how quick celery tasks are scheduled and executed.