Add tests for handling negative numbers