created Post model and tests for it