Implemented and passed tests of everything but nested-loops join, which is not included in the test set.

I also corrected some errors in the provided test results.