fixed the update test, wrote an upate all test, still need to write an update all function