implemented invalid html test and added logger for xml errors