Fixed bug where if in test mode, it would still write to pastposts file