Added tests for update and fetch