Test wrap and unwrap of html elements