Chnages for more files on the issues resolved by @bb4378404ddb5f9aac69f84a5b613df147009aa4

More changes on the same issue:-- "Removing use of subclassed application constant and instead using the more agnostic Rails.application syntax. This means tests will be more
portable, and won't rely on the existence of a particular subclass."
Revision Number:- bb4378404ddb5f9aac69f84a5b613df147009aa4