Improve contact tests.

* Factor guid and uri in setUpClass.
* Test __repr__ and __str__ produce same results.
Move and refactor multisig tests.

* Factor and move multisig test in proper folder.
* Rewrite tests in unittest format.