Restored the accidentally removed check_export functionality in export/hazard_test.py