Get json decoding and data saving tests working