PAHMA-876: small enhancement to point out terms that have no parents. Also, the test code in the module now works again.