Depending on the lxml version, some tests are not correctly handled. This makes everything to work properly in all versions.