Changed architecture for posts
Tests for post model
Partial fix
Fixed tests