Add unit test for identity accessor.