mock http requests in test
added test for the hit-counter directive