fix for permissions test
reformat preset json output to read directly from db, and include group id
Ensure presets are unique according to their main tags, will raise API error if not, and tests to ensure it