Add AppIdentity tests.