Add unit tests for get_term().
get_term()
These tests will be useful as we begin to refactor in favor of WP_Term.
WP_Term
See #14162.