Moved update function to update.js changes at update tests