Update IndexTest to be compatible with 0.90.*
added an interface that entities can implement