replaced auth with identity and added a few more tests