adds integration test for checking correct json on put