add time test to compute time cost; add fileInpuTest to test how to save sth. into a file with append mode.