Test JSON endpoints for typeahead