Added a test for environment filtering.