Rebase PR branch from remote branch.

* Revamping repo helpers.
Use revised repo object helpers in other tests.
Revamp test with repo object helpers.
Merge: Rebase local PR branch from remote.

* Revamp test repo object helpers.