tests: close plain data files and terminate strs
* tests/t-parser.cpp (main): close files and ensure read strings end with 0.