If you decide to raise an error for an empty set of measures you should add another test asserting that the exception is raised in that case.