completed tests for post model - methods to search posts by particular parameters