minor fixes of HttpUri metric
added tests for HttpUri metric