Added testing for JSON file

Signed-off-by: Dan Rumney <dancrumb@gmail.com>