Bug fix for update_in plus updated tests for this function