Merge "Add test for isAnonymous"