added tests for error views.
added the test for PostsController