add test cases for #188