add tests for reading and parsing files