fix post processing call and extend unit test