Add unit tests for example syntax

Tests api/examples, examples, and any embedded json in readme.