Add a unit test for negative numbers