Fixed filter name detection.
Removed sys.exit for testing classes.