Added unit test project and fixed user identities parsing.