Added testing

Added testing for file IO and binary classification, and added a variety
of support functions throughout to support the testing.  Also fixed a
glaring bug with Nu based solvers exposed by the testing.