Tidied up junk warnings about missing parent records now that we are filtering parent records differently.
Completed unit tests for /api/records and variations, including paging and filtering.