add test for negative case