testing the new flattenTerms finally