Don't use Rails 4.0.0

Added upper bound on rails dependencies
The tests work again