This is needed to run test cases without wells with debugging on. Without this commit we get segmentation fault in an assert statement.