Add unit tests for example syntax

Tests api/examples, examples, and any embedded json in readme.
Merge pull request #590 from smarterclayton/test_example_syntax

Add unit tests for example syntax