Add test for update method for mongodb backend