fix autoreload issue in tests