Add tests for measurement service. All pass.