[caching] update invalidate tests for eras starting from 0, and increment_era rename