fixed tests; fiexed update errors