refactors post tests