wrote test for update action - not passing