Add tests for negative numbers

Addresses #9.
Adds tests for negative numbers.