Add test suite, fix a mountain of small errors.
diff --git a/json-schema.c b/json-schema.c
index bb3b7fe..4762dff 100644
--- a/json-schema.c
+++ b/json-schema.c
@@ -86,6 +86,8 @@
     chdir(original_cwd);
     free(original_cwd);
 
+    if (result)
+        log_validator_debug("Successfully validated the provided object against schema.");
     return result;
 }