Testing JSON functions in Postgres