fixed bug in update test