correct testing for guild or species effect

Need to convert to factor.