Add tests for json storage