Measuring quantum work relations