Added api test

* Run a server on test environment
* Cleanup post view model to add extra prop for the view