added equals method to npctype
added some tests