Added 'unit tests' for cmp_tree.py and filter.py