fix rake test error prepare update