Ensure file handle is closed once sample is read
Verify the correct number of rows are returned