added controller tests

There are also changes related to draft/preview view on creating and editing a blog post