fixing read json + test