test: added test for compound terms