update test to work without static .env file, reformat rakefile