Added Posts controller, some test refactoring