added pre post filters
added test for postfilter