add testing for proper input file format