added JSON error test and gem executable