Test extraction with invalid html

Signed-off-by: Igor Popov <igor.popov89@gmail.com>