Adds spec test for negative number output (issue #541)