Entity tag implementation and tests.