add test cases for #45