updated gen_test to save a sqequence of files based on input successfully, yay