Changed PluginDAO.OwnerID to handle possible null values
Added initial tests around SqlController group functionality