Add tests for the Entitymap helper.
In preparation for D8.
Differential Revision: https://code.wildfiregames.com/D1722