fixed error in how taxonomies were collapsed, which resulted in incorrect comparisons between actual and expected