Added post model and tests