Tidied up the tests, removed superfulous function to find index for child as it should be the same as finding a place for the record.