add posts view and model tests