Finished output tests, and fixed a bug in the MADlib testsuite