Add testcase for file read together with test data.

As we add I/O functionality, it's hard to get around using test data. Please see if you'd like to make any adjustments to how it's structured.