added test code for measures