Test to get realms