Test that command errors will throw a ResultException
Fix indentation in QueryTest
Test various output methods for Collection::mapReduce()