Added tests for and fixed parsing of negative numbers.