Make sure that the rails env is set to test before loading the app environment.