add test for identity callbacks