Test to check the metric validation exceptions.