Created gen_test, which randomly generates a test file, and return a list of intervals which could be random (testing interval_integrate not find_equal_temps).