Fixed wrong test for character inequality.
Initial tests (and implementation) for identity registration.

Minor:
Changed the hashbang line of tests.py to indicate plain python(2) instead of 3.
Now also testing the happy path for identity registration.

TODO: Still need to test all possible roles (might not be possible till we
get to implement all the roles).
Comment clean-up.