Refactored creation of HttpRequestMetric for testability
Merge pull request #4 from markrendle/tests

Tests