moved caching to term meta post id, updated tests