Add tests for JSON parsing script

Simple tests which capture the format of the JSON we're expecting and
demonstrate a success and failure case.

Also run them from Travis / run_tests.sh.