Explicitly setting RAILS_ENV for tests

As discussed, setting this in the script rather than in Jenkins