Let's remove this whole $arr var and the test that uses it, because it just duplicates what's in the sample data file, and then tests for equality on that, making the test case very verbose, and not terribly useful. Take a look at the README.md in the "Handle the result" section and the "About FileMaker Portals" section for some ideas of what the parsed structure should be and how you could write tests to prove that. Also see simplefm_example.php for some ideas of usage, and try to make a test for each of those examples, of course changing out the expected result for your block of sample xml. What we're after is testing our assumptions about how we consume the result array. Note that there is a switch for what it uses as a key. See `public function setRowsbyrecid($rowsByRecId = FALSE)`