Added some tests.
Fixed parameters numeration: the first parameter in a query string was shifted from 0 to 1.
Fixed bug with parameter recognizing at the end of a query string.