Upgrade to 4.0.5 rails
fix test bug
Can't make it work, so reverting the method for cucumber test