Fix includes of some tests.
Add method equals to entity wrappers.

This change makes the EntityPointers to the host
entity public, too.
Fix headercheck and deprecation warnings.