Tests in the niche model function