Correct the error in getting and sorting task
Correct error in calling measure functions
Add test of measurement for one site