add support for user defined output filter in tests