add env variable for testing, simplify settings config for testing