added test cases for negative values