Refactoring parse_measures test