Add rendering tests

Fixed tests by removing extraneous nodes from rendered html.