More JSON data loader tests. Found and fixed a bug.