Code cleanup in post_test.rb