Fixed prototype.
Added a test case for negative numbers (failure).