[TASK] Correctly initialize environment for DataHandler in tests