added test for <figure> and continued implementing support for <figure>