Changed search view to take list of dicts as json, updated tests