add test for bug fix