added tests for post_controller.rb