Patch mostly done; two failing tests; need better equal and JSON syntax check.