Add simple schema validation test.
Catch boost exceptions in main function.