Fixed /update route so tests can pass