added proper test for negative case