fixed bug in addpost test