changes to post model
changes to controller
added more tests