improve expiration system, add token_timer to posts, refactor testing