Added filterSwitch to test file