added test for negative numbers
added test for negative values