Adding a test for json update