[test suite] Make test more robust in face of measure elements