improved json smoke test