Added logging utils class in the testing utils package. Modified the MetricsResourceTest to turn off logging and verify that the correct exception was obtained from the servers.