Remove surrounding div element from test comparison