Added tests for zero and negative numbers.