Added to post model error check, if searching post is not exist
Added tests for posts