Add simple test of buildjson function.