Added test for negative number and code to catch that error