Update gem file, and remove old unnecessary test from Repository spec.
Complete all tests for user model: delegations and association checks.