Added test for negative numbers