Added tests for write out filter