add test cases for variation and sem