Extract Assignment tests from IdentityTestCase

Extracts tests for domains, projects, roles and
grants/role assignments from IdentityTestCase
and put them in AssignmentTestCase.

Change-Id: I0e426fa1803e144b1c7a3eb503b212c6469e67c4
Closes-Bug: 1367778
Merge "Extract Assignment tests from IdentityTestCase"