Test function rankhospital.