Added code and integration test for updating a status