Fixed support for country vs. pantropical api endpoints; added tests