Removed extract(). Added aria-describedby to wp_get_attachment_image (as in the WP gallery_shortcode())
Use create_posts() instead of create_posts_with_terms for gallery tests.
Wrap  related_posts_by_taxonomy_post_thumbnail filter image in link
Removed extract().
Changed test template argument to not use .php