test for multiple species; added error handling