Update test.dats

Reformatted to work as the main functions of the program.