create tests and generate post model