Add tests for metrics web-services