Adding basic methods for finding groups and users for validation; refactoring some tests