add test case for SM