test_non_production_core.py: fix hanging test