Fix not load environment files when test

Closes #5289

remove the stub since Rails.root is a waaaaay better way of testing this.