add posts controller and test