Fixed a bug with http range, fixed a bug when there is no xsl template to return an error, Fixed a bug when the selector is already closed. Written several unittests