Added unit tests for simple and stats metric service