Test compound term with elements.