```ruby
ENV['RAILS_ENV'] = 'test'
ENV['RAILS_ROOT'] ||= File.dirname(__FILE__) + '/../../../..'

require 'test/unit'
require File.expand_path(File.join(ENV['RAILS_ROOT'], 'config/environment.rb')) 
```

Remove unnecessary loading of Rails env
user
```ruby
require 'rubygems'
require 'active_support'
require 'test/unit'
require File.join(File.dirname(__FILE__), '..', 'lib', 'lucy')
```
assistant