Remove the deprecated config.whiny_nils in the test environment
Use the new Rails 4.0 syntax for scopes