Clear environment before config loader tests

Fixes #319