Better unit test for reading from file with matching size