adds integration test for checking correct json on delete