test against rails 4.0.0
fix mocking deprecations