Removed illegal input, updated tests, updated makefile

Changed code to remove illegal output and added tests for the output it
was supposed to have.  Update the makefile with code coverage options,
debug options, and update the test option.