Added identity field funcionality and its unit test.