Test JSON returned by views