wrote more tests for group security queries; refined queries in model manager to ensure secure queries.